package com.wtwd.device.constant;

/**
 * Created by mjy on 2023/8/17 9:13
 */
public enum UploadFileEnum {

    HEALTH_TYPE_INTERNATIONALIZED_DOCUMENT(1, "健康类型国际化文件"),

    HEALTH_CONTENT_INTERNATIONALIZED_DOCUMENT(2, "贴士国际化文件");
    private Integer type;

    private String msg;

    UploadFileEnum(Integer type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public static UploadFileEnum getUploadFileEnum(int type) {
        for (UploadFileEnum value : UploadFileEnum.values()) {
            if (type == value.type) {
                return value;
            }
        }
        return null;
    }
}
